<?php
require_once '../utils/Log.php';
require_once '../utils/Tools.php';
require_once '../request/BankVerifyRequest.php';
require_once '../DefaultOpenApiClient.php';
/**
 * Created by PhpStorm.
 * User: zpr
 * Date: 2017/6/21
 * Time: 9:44
 */
class BankVerifyRequestDemo{
    public function main(){
        $data = json_encode(array("cardNo"=>"","phoneNo"=>""));
        Log::outLog('请求数据',$data);
        $reqiest = new BankVerifyRequest($data,'https://api-mop.chinaums.com');
        $client = new DefaultOpenApiClient();
        $content = $client->execute($reqiest,'appid','appkey');
        $obj = json_decode($content);
        print_r($obj->errCode);
        print_r($obj->errInfo);
        print_r($obj->data);
    }
}
$p = new BankVerifyRequestDemo();
$p->main();